package entity.salary;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author beisheng
 * @since 2023-03-14
 */
@Getter
@Setter
@TableName("missing_card")
public class MissingCard implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 旷工计薪规则序号
     */
    @TableId(value = "missing_card_id", type = IdType.AUTO)
    private Integer missingCardId;

    /**
     * 方案名称
     */
    @TableField("missing_card_name")
    private String missingCardName;

    /**
     * 规则
     */
    @TableField("missing_card_rules")
    private String missingCardRules;

    /**
     * 状态
     */
    @TableField("missing_card_state")
    private Integer missingCardState;

    /**
     * 操作时间
     */
    @TableField("operation_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date operationTime;

    /**
     * 创建时间
     */
    @TableField("creat_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date creatTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 删除标识
     */
    @TableField("delete_flage")
    private Integer deleteFlage;


}
